package com.study.example.gameserver.module.attr.util;

import com.sparrow.common.attr.domain.Attr;
import com.study.example.gameserver.module.attr.domain.AttrType;
import com.study.example.gameserver.module.player.entity.Player;

import java.util.Map;

public class AttrHelper {

    public static long calcFightForce(Player player) {
        Attr attr = player.getAttrBox().getFinalAttr();
        long fightForce = attr.get(AttrType.Atk) + attr.get(AttrType.Def) + attr.get(AttrType.Hp);
        return fightForce;
    }
}
